package com.ziq.base.utils.permission

import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.PopupWindow
import com.ziq.base.databinding.FwDialogPermissionDescriptionBinding

class PermissionPopupWindow(context: Context, title:String, content:String): PopupWindow(context) {

    var binding : FwDialogPermissionDescriptionBinding = FwDialogPermissionDescriptionBinding.inflate(LayoutInflater.from(context))
    init {
        contentView = binding.root
        setBackgroundDrawable(null)
        width = ViewGroup.LayoutParams.MATCH_PARENT
        binding.tvTitle.text = title
        binding.tvContent.text = content
        isOutsideTouchable = true
    }

}